﻿using System;

namespace IFD2
{
    public partial class DepFltSeatLog : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["ACL"].ToString().IndexOf("DA4") < 0)
                {
                    Response.Redirect("unauthorized.aspx");
                }
                lblOpAirline.Text = Session["AIRLINE"].ToString();
                if (Request.QueryString["flt_date"] == null)
                {
                    lblError.Text = "Illigal page calling!";
                    return;
                }
                lblFltDate.Text = Request.QueryString["flt_date"].ToString();
                lblFltNo.Text = Request.QueryString["flt_no"].ToString();

                lbtnQuery_Click(sender, e);
            }
        }

        protected void lbtnQuery_Click(object sender, EventArgs e)
        {
            GridView1.DataBind();
        }
    }
}